import React, { Component } from "react";
import { Link } from "react-router-dom";
import "./index.css";

class ButtonBack extends Component {
  render() {
    return (
      <div>
        <Link to="/">
          <button className="btn-back">
            <div>
              <svg className="btn-icon" aria-hidden="true">
                <use xlinkHref="#icon-gongxiangtubiaozhuangtaileicaozuolei59"></use>
              </svg>
            </div>
            <p className="btn-text">返回</p>
          </button>
        </Link>
      </div>
    );
  }
}

// function Goback() {
//   let history = useHistory();
//   history.push("/");
// }

export default ButtonBack;
